import { Component, OnInit } from '@angular/core';
import { PopoverController } from '@ionic/angular';

export enum OperationType {
  Unread,
  Top,
  Hide,
  Delete
}

@Component({
  selector: 'app-chats-item-popover',
  templateUrl: './chats-item-popover.component.html',
  styleUrls: ['./chats-item-popover.component.scss'],
})
export class ChatsItemPopoverComponent implements OnInit {

  InnerType = OperationType;

  constructor(private popoverCtrl: PopoverController) { }

  ngOnInit() { }

  doClick(type: OperationType) {
    this.popoverCtrl.dismiss(type);
  }
}
